package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.service.IHotelDetailService;
import cn.wolfcode.trip.base.service.IRoomSercvice;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/hotelDetails")
public class HotelDetailController {
    @Autowired
    private IHotelDetailService hotelDetailService;

    @GetMapping("/{id}")
    @ResponseBody
    public Object getHotelDetail(@PathVariable Long id) {
        return hotelDetailService.get(id);
    }
}
